




public  class Test {
    public static void test1(Animal animal){
         Animal.eat();
    }
    public static void test2(IRunning irunning){
irunning.run();
    }
    public static void test3(ISwimming iswimming){
iswimming.swim();
    }
    public static void test4(IFlying iflying){
 iFlying.fly();
    }
    public static void main(String[] args) {
Dog dog=new Dog("小狗",4);
test1(dog);
    }
}
